var wxManager = require("wxManager");

cc.Class({
    extends: cc.Component,

    properties: {
	
		 tips: {
            type: cc.Label,
            default: null
       },

    },
	
	onLoad: function () {
		
		this.wxmanager = new wxManager();
		
		this.wxmanager.showWxAd();
		
		
		this.node.opacity=0;
		 this.tips.node.active = false;
		this.node.runAction(cc.sequence([cc.fadeIn(1.5),cc.callFunc(function () {
			
				this.tips.node.active = true;
				this.tips.node.runAction(cc.repeatForever(cc.sequence([cc.fadeOut(1),cc.fadeIn(1)])));
			
				cc.director.loadScene('game');
		}, this)]));
				
	},
});
